package com.newsee.remote.idm.controller;


import com.newsee.remote.common.bean.JsonResult;
import com.newsee.remote.common.dto.idm.SystemUserDTO;
import com.newsee.remote.idm.service.ISystemUsersThirdService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  人员前端控制器
 * </p>
 *
 * @author liangzhichen
 * @since 2019-07-11
 */
@RestController
@RequestMapping("/idm/user")
public class SystemUsersThirdController {

    private final ISystemUsersThirdService iSystemUsersThirdService;

    public SystemUsersThirdController(ISystemUsersThirdService iSystemUsersThirdService) {
        this.iSystemUsersThirdService = iSystemUsersThirdService;
    }

    @ApiOperation(value="增量同步idm人员信息接口")
    @GetMapping
    public JsonResult sunacUser(@RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime){
        return iSystemUsersThirdService.sunacUser(startTime, endTime);
    }
}
